home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / INSTALL / WIN95.ZOO < prev    next >
Encoding:
Text File  |  1995-10-10  |  13.7 KB  |  211 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2.  
  3. /*****************************************************************************
  4.   NAME
  5.     win95.zoo - Windows NT V3 Installation Environment Initialization File
  6.            for V7 Oracle products
  7.  
  8.   DESCRIPTION
  9.    This script bootstraps the Windows environment for the installation
  10.    of Oracle V7 products. It is always read first by ORAINST for Windows.
  11.  
  12.   MODIFIED   MM/DD/YY REASON
  13.    sagarwal  09/26/95 Moved remind_list from win95.avf to win95.stp
  14.    sagarwal  09/26/95 Removed smart start stuff
  15.    zzerhoun  09/17/95 Made nt.stp compatible:
  16.               added makedir_content & makedir_help
  17.               added path releated NLS strings
  18.    sagarwal  09/12/95 Added PATH.VRF
  19.    sagarwal  09/12/95 Modified oracle_group_name to be "Oracle for Windows95"
  20.    sagarwal  09/11/95 Added win16_oracle_home
  21.    sagarwal  07/11/95 Created from nt.zoo
  22. *****************************************************************************/
  23. {
  24.   permit_retry_operations = FALSE;  
  25.  
  26.   /* Note: Above is used in win95.stp and win95.avf. */
  27.   /* Define NLS strings for makedir.vrf */
  28.   {
  29.     makedir_specify_drive = nls("makedir_specify_drive","The path that you have entered, '%%makedir_path_to_check%%', is not a valid path because it does not specify a drive.");
  30.     makedir_bad_drive = nls("makedir_bad_drive", "The path, '%%makedir_path_to_check%%', is not valid because the drive '%%makedir_drive%%:' does not exist.");
  31.     makedir_no_dir = nls("makedir_no_dir", "'%%makedir_path_to_check%%' does not specify a directory. Please specify a directory name in your path.");
  32.     makedir_invalid_path = nls("makedir_invalid_path", "'%%makedir_path_to_check%%' is not a valid path.");
  33.     makedir_absolute_path = nls("makedir_absolute_path", "'%%makedir_path_to_check%%' is not an absolute path.");
  34.     makedir_illegal_char = nls("makedir_illegal_char", "'%%makedir_path_to_check%%' is not a valid path because it contains the illegal character '%%makedir_bad_char%%'.");
  35.     makedir_name_too_long = nls("makedir_name_too_long","The directory, '%%makedir_name%%', of the path '%%makedir_path_to_check%%' is too long.");
  36.     makedir_illegal_name = nls("makedir_illegal_name","The directory, '%%makedir_name%%', of the path '%%makedir_path_to_check%%' is not a legal name.");
  37.     makedir_dir_not_accessible = nls("makedir_dir_not_accessible","The directory, '%%makedir_current_path%%', is not accessible.");
  38.     makedir_cant_create_dir = nls("makedir_cant_create_dir","The Installer could not create the directory '%%makedir_current_path%%' : %%makedir_signal%%"); 
  39.     makedir_long_basename = nls("makedir_long_basename","The directory, '%%makedir_name%%', of the path, '%%makedir_path_to_check%%', is not legal because the basename '%%makedir_base%%' contains more than 8 characters.");  
  40.     makedir_long_extension = nls("makedir_long_extension","The directory, '%%makedir_name%%', of the path, '%%makedir_path_to_check%%', is not legal because the extension '%%makedir_ext%%' contains more than 3 characters.");
  41.     makedir_has_white_space = nls("makedir_has_white_space","The directory, '%%makedir_name%%', of the path, '%%makedir_path_to_check%%', contains a space or tab character. To avoid confusion, you should not enter a directory which does not contain any whitespace characters.");
  42.     makedir_content = nls("makedir_content","Directory Selection");
  43.     makedir_help = nls("makedir_help","Please Select a Directory");
  44.   }
  45.  
  46.   ui_product(nls("check_environment","Checking the Environment..."));
  47.  
  48.  
  49.   /* Let the installer know that this is not a bootstrapping sequence. */
  50.  
  51.   bootstrap = FALSE;
  52.  
  53.   /* Indicate that the installer is not being run from distribution media. */
  54.  
  55.   distribution = FALSE;
  56.  
  57.  
  58.   /* The environment has already been set up, so 'config' and  'oracle_home'
  59.      should be readily available. */
  60.   {
  61.     /* Provide the Windows 3.1 oracle home */
  62.     windows_dir = windows_directory();
  63.     if (directory_name(windows_dir) == windows_dir)
  64.       win_ini_dir = "%windows_dir%win.ini";
  65.     else
  66.       win_ini_dir = "%windows_dir%\win.ini";
  67.     {
  68.       windows_ora_config = translate("ora_config", win_ini_dir);
  69.       win16_oracle_home = translate("oracle_home", "%windows_ora_config%");
  70.     }['DEFAULT: continue();]
  71.  
  72.     nls_language = default_language();
  73.     oracle_home = v7_translate("oracle_home"); pathify(oracle_home);
  74.     ora_config = "$oracle";
  75.     oracle_group_name = v7_translate("oracle_group_name");
  76.  
  77.   /* Is everything there? */
  78.     if (not(exists("%oracle_home%\bin")) ||
  79.     not(exists("%oracle_home%\dbs")) ||
  80.     not(exists("%oracle_home%\orainst")) ||
  81.     not(exists("%oracle_home%\orainst\win95.rgs")))
  82.       signal('UNBOUND_ENVIRONMENT_VARIABLE);
  83.  
  84.   }  
  85.   ['UNBOUND_ENVIRONMENT_VARIABLE: signal('FAILURE,nls("installation_corrupted","This installation of Oracle needs to be corrected. To do this, you must run the Oracle Installer from a distribution diskette or from CD-ROM.")); ]
  86.  
  87.  /* create log file */
  88.  {
  89.    { 
  90.      copy_file("%oracle_home%\orainst\orainst.log",
  91.            "%oracle_home%\orainst\orainst.olg");
  92.     } [ 'default: continue(); ]
  93.     
  94.     create_log("%ORACLE_HOME%\ORAINST\ORAINST.LOG",FALSE);
  95.   } [ 'default: continue(); ]
  96.  
  97.   /* log the windows NT env */
  98.   log_state();
  99.   win32_log_state();
  100.  
  101.   /* System root Drive */
  102.   SystemRoot = nt_system_root();
  103.   system_root_drive = first(explode(SystemRoot,":")); 
  104.   
  105.   identifying_boot_drive = nls("identifying_boot_drive",
  106.                            "Identifying the Boot Drive...");
  107.  
  108.   boot_drive_prompt = nls("boot_drive_prompt","Please select the drive from which you boot your computer:");
  109.   boot_drive_content = nls("boot_drive_content","Boot Drive");
  110.   boot_drive_help = nls("boot_drive_help","You are being asked to identify the drive from which you boot your computer.");
  111.  
  112.   path_too_long_prompt = nls("path_too_long_prompt","The addition of %%path_to_add%% to the PATH will result in a search path length of %%len%%, exceeding the DOS limit of 127. You will have to correct this manually.");
  113.   path_too_long_content = nls("path_too_long_content","Path Too Long");
  114.   path_too_long_help = nls("path_too_long_help","The addition of %%path_to_add%% to the PATH will result in a search path length of %%len%%, exceeding the DOS limit of 127. You will have to correct this manually. One solution may be shorter directory names.");
  115.  
  116.   reinstall_prompt01 = nls("reinstall_prompt01","Would you like to update %%product_label%%, version %%installed_version%%, with the available release of %%product_label%%, version %%current_version%%?");
  117.  
  118.   reinstall_content01 = nls("reinstall_content01","Update");
  119.  
  120.   reinstall_help01 = nls("reinstall_help01","The currently installed version of %%product_label%%, %%installed_version%%, is out of date. The available version is %%current_version%%. It is recommended that you update %%product_label%% to the newer version, %%current_version%%. Choose 'Yes' to update %%product_label%% to %%current_version%%. Choose 'No' if you are sure you want to keep the installed version, %%installed_version%%, intact.");
  121.  
  122.   reinstall_prompt02 = nls("reinstall_prompt02","WARNING: Not installing the latest version of %%product_label%%, %%current_version%%, may cause other Oracle products to work improperly.");
  123.  
  124.   reinstall_content02 = nls("reinstall_content02","Necessary Update");
  125.  
  126.   reinstall_help02 = nls("reinstall_help02","You are in the process of installing Oracle products which depend on version %%current_version%% of %%product_label%%. It is therefore recommended that you update %%product_label%% to %%current_version%%. You have chosen not to do so so, which may cause certain Oracle products to work improperly.");
  127.  
  128.   reinstall_prompt03 = nls("reinstall_prompt03","WARNING: The currently installed version of %%product_label%%, %%installed_version%%, is up to date. Are you sure you want to install the old version, %%current_version%%?  Doing so may cause other Oracle products to work improperly.");
  129.  
  130.   reinstall_content03 = nls("reinstall_content03","Old Version");
  131.  
  132.   reinstall_help03 = nls("reinstall_help03","You are attempting to install an older version of %%product_label%%, %%current_version%%, although version %%installed_version%% is already installed. Installing an older version of %%product_label%% may cause other Oracle products to work improperly. Choose 'No' to leave the current version of %%product_label%%, %%installed_version%%, intact. Choose 'Yes' if you are sure you want to replace it with version %%current_version%%.");
  133.  
  134.   reinstall_prompt04 = nls("reinstall_prompt04","Version %%installed_version%% of %%product_label%% has already been installed and is up to date. Would you like to reinstall it?");
  135.  
  136.   reinstall_content04 = nls("reinstall_content04","Up To Date");
  137.  
  138.   reinstall_help04 = nls("reinstall_help04","Version %%installed_version%% of %%product_label%% has already been installed and is up to date. There is no need to reinstall %%product_label%% unless the installation has somehow become damaged. Choose 'No' to skip the reinstallation of %%product_label%%. Choose 'Yes' if you are sure you want to reinstall it.");
  139.  
  140.   deinstall_prompt01 = nls("deinstall_prompt01","WARNING: Other products are dependent on %%registry_label%%. Removing it may cause other products to work improperly. Are you sure you want to deinstall it?");
  141.  
  142.   deinstall_content01 = nls("deinstall_content01","Dependencies");
  143.  
  144.   deinstall_help01 = nls("deinstall_help01","Other products are dependent on %%registry_label%%. Removing it may cause them to work improperly. It is therefore recommended that you do not remove %%registry_label%%. Choose 'No' to leave %%registry_label%% intact. Choose 'Yes' if you are sure you want to remove it.");
  145.  
  146.   deinstall_prompt02 = nls("deinstall_prompt02","It was not possible to find a value for the variable, '%%variable%%', in '%%ora_config%%'. It is therefore not possible to remove %%registry_label%%. Please restore the binding for '%%variable%%' in '%%ora_config%%' in order to remove %%registry_label%%.");
  147.  
  148.   deinstall_content02 = nls("deinstall_content02","Variables");
  149.  
  150.   deinstall_help02 = nls("deinstall_help02","It was not possible to find a value for the variable, '%%variable%%', in '%%ora_config%%'. '%%variable%%' is used to determine in what directory %%registry_label%% was installed. It is therefore not possible to remove %%registry_label%%. Please restore the binding for '%%variable%%' in by adding a line that begins with '%%variable%%=' in '%%ora_config%%'.
  151.  
  152. If %%registry_label%% were installed in '%%oracle_home%%', you would add the line '%%variable%%=%%oracle_home%%' to correct the problem.
  153.  
  154. When you have corrected the problem, please try to remove %%registry_label%% again.");
  155.  
  156.   unbound_message = nls("unbound_message","The versions of the products you are installing require a separate installation procedure. Please choose 'OK' to quit this installation, leave the disk labeled '%%product_label%% 1' in your drive, and then choose 'From'. When the %%product_label%% installation is complete, please resume installing the products you originally selected for installation.");
  157.   unbound_content = nls("unbound_content","Separate Installation Procedure");
  158.   unbound_help = nls("unbound_help","The product you are currently installing was created with a different version of %%product_label%%. Proceeding with the current installation may result in installation errors. To avoid these errors and to successfully complete your installation, please choose 'OK' to quit this installation, insert the disk labeled '%%product_label%% 1' in your drive, and choose 'From'. When that installation is complete, then install the other products you originally selected for installation.");
  159.   instver_too_early = nls("instver_too_early","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%% or later. Please run version %%required_version%% or later in order to perform this installation.");
  160.   version_string = nls("version_string","%%prodlab%% version %%ver%%");
  161.   cancel_prompt01 = nls("cancel_prompt01","Installation terminated at user request."); 
  162.   registering_product = nls("registering_product", "Registering %%product_label%%...");
  163.   create_dir_prompt = nls("create_dir_prompt","Creating %%dest_dir%% ...");
  164.   copying_file = nls("copying_file","Copying %%file_to_copy%% ...");
  165.  
  166.   ui_setting_up = nls("ui_setting_up", "Setting up...");
  167.   ui_analyzing_dependencies = nls("ui_analyzing_dependencies", "Analyzing Dependencies...");
  168.   ui_installing = nls("ui_installing", "Installing...");
  169.   ui_deinstalling = nls("ui_deinstalling", "Removing...");
  170.   ui_cancelling = nls("ui_cancelling", "Cancelling...");
  171.   ui_configuring = nls("ui_configuring","Configuring...");
  172.  
  173.   inst_dir = "%oracle_home%\ORAINST";
  174.   backup_dir = "%inst_dir%\backup";
  175.   backup_marker = "%inst_dir%\backup.mk";
  176.   if (exists(backup_marker))
  177.     {
  178.       copy_list = list("win95.AVF", "win95.VRF", "win95.PVF",
  179.                "win95.INS", "win95.DEI", "win95.PIN", 
  180.                "win95.SHD", "WIN95.RSP",
  181.                "PATH.VRF", "MAKEDIR.VRF");
  182.  
  183.       a_list = copy_list;
  184.       while (not(empty(a_list))) 
  185.     {
  186.       the_file = first(a_list);
  187.       a_list = rest(a_list);
  188.       {
  189.         copy_file("%backup_dir%\%the_file%", "%inst_dir%\");
  190.       } [ 'default: continue(); ]
  191.     }
  192.  
  193.       /* backup is done, clear marker */
  194.       remove_file(backup_marker);
  195.  
  196.       {
  197.     a_list = copy_list;
  198.     while (not(empty(a_list))) 
  199.       {
  200.         the_file = first(a_list);
  201.         a_list = rest(a_list);
  202.         remove_file("%backup_dir%\%the_file%");
  203.       }
  204.     remove_directory(backup_dir);
  205.       } [ 'default: continue(); ]
  206.     }
  207.   remind_list = list(); remind_helps = list();
  208.   permit_retry_operations = FALSE;
  209.   problem_reboot = FALSE; autoexec_reboot = FALSE;
  210. }
  211.